package com.fenxiangtech.mall.dao;

import com.fenxiangtech.mall.model.ProductProperty;
import com.fenxiangtech.mall.model.qc.ProductPropertyQC;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;

@Mapper
@Repository
public interface ProductPropertyDAO{

    int insertProductProperty(ProductProperty productProperty);

    int updateProductProperty(ProductProperty productProperty);

    List<ProductProperty> listProductProperty(ProductPropertyQC productProperty);

    Long countProductProperty(ProductPropertyQC productProperty);

    int insertBatch(@Param("list") List<ProductProperty> productPropertys);

    int deleteProductPropertyById(Long id);

}